package com.jy.rhin.model.body.jiankangtj;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/**
 * 眼章节
 * @author shenguangyang
 */
@Data
public class YanBu {
    /** 左眼裸眼远视力值 */
    @XPath(model = "code",
            codePath = "/entry/observation/code[@code='DE04.10.116.00'][@codeSystem='2.16.156.10011.2.2.1'][@displayName='左眼裸眼远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_116_00))
    String zuoYanLYYSLZ;

    /** 右眼裸眼远视力值 */
    @XPath(model = "code",
            codePath = "/entry/observation/code[@code='DE04.10.116.00'][@codeSystem='2.16.156.10011.2.2.1'][@displayName='右眼裸眼远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_116_00))
    String youYanLYYSLZ;


    /** 左眼矫正远视力值 */
    @XPath(model = "code",
            codePath = "/entry/observation/code[@code='DE04.10.098.00'][@codeSystem='2.16.156.10011.2.2.1'][@displayName='左眼矫正远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_098_00))
    String zuoYanJZYSLZ;

    /** 右眼矫正远视力值 */
    @XPath(model = "code",
            codePath = "/entry/observation/code[@code='DE04.10.098.00'][@codeSystem='2.16.156.10011.2.2.1'][@displayName='右眼矫正远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_098_00))
    String youYanJZYSLZ;

    /** 眼底检查结果异常标志 */
    @XPath(model = "code",
            codePath = "/entry/observation/code[@code='DE04.50.110.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_50_110_00))
    String yanDi;

    /** 眼底异常详述 */
    @XPath(model = "code",
            codePath = "/entry/observation/entryRelationship/observation/code[@code='DE04.10.215.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_215_00))
    String yanDiYCXS;

    /** 巩膜检查结果代码 */
    @XPath(path = "/entry/observation/code[@code='DE04.10.075.00'][@codeSystem='2.16.156.10011.2.2.1']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_075_00))
    CodeObject gongMo;
}
